Skip to content

Conversation

@CodySchneider
Copy link

Review on Reviewable

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this is in an else if? Wouldn't it be possible that a stylesheet has some CSS rules and an import?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly... to be honest this was a quick hack in order to evaluate whether this script would even work in our environment. In our case Drupal just spews out a bunch of imports in a <style> block and this seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants